/**
 * Copyright (c) Enalean, 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

@import './repository-card';

.git-repository-list-empty-image {
    stroke: transparentize($tlp-theme-color, .7);
}

.git-repository-list-empty-rect {
    fill: transparentize($tlp-theme-color, .7);
}

.git-repository-create-modal-body {
    height: auto;
}

.git-repository-list-create-repository-button {
    margin: 0 $tlp-spacing 0 0;
}

.git-repository-list {
    display: flex;
    flex-wrap: wrap;
}

.git-repository-list-loading {
    width: 250px;
    height: 200px;
    margin: 0 auto;
    background: url('/themes/BurningParrot/images/spinner.gif') no-repeat center center;
}

.git-repository-list-actions {
    display: flex;
    margin: 0 0 $tlp-spacing;
}

.git-repository-list-actions-spacer,
.git-repository-links-spacer {
    flex: 1;
    min-width: 20px;
}

.git-repository-actions-select-owners {
    display: flex;
    align-items: baseline;

    > .tlp-label {
        margin: 0 5px 0 0;
    }
}

.git-repository-list-actions-display-switch {
    margin: 0 $tlp-spacing 0 0;

    .fa-calendar {
        position: relative;
        top: -2px;
        left: 0;
        font-size: 15px;
    }
}

.git-repository-list-switch-path-label {
    padding: 0 18px;
}

.git-repository-list-folder {
    position: relative;
    margin: 0 0 0 24px;

    &::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 10px;
        width: 1px;
        height: calc(100% - 25px);
        border-left: 1px solid $tlp-ui-border-normal;
    }
}

.git-repository-list-base-folder {
    margin: 0;
}

.git-repository-list-collapsible-folder {
    display: flex;
    margin: 0 0 $tlp-spacing;
    color: $tlp-theme-color;
    cursor: pointer;

    > .git-repository-list-folder-label {
        margin: 0 0 0 5px;
        font-size: 16px;

        > .fa-folder-o {
            margin: 0 3px 0 0;
            font-size: 18px;
        }
    }
}

.git-repository-in-folder {
    margin: 0 0 $tlp-spacing 33px;
}
